<?php
namespace catchAdmin\basics\model\search;

trait AddDataSearch
{
    public function searchNameAttr($query,$value,$data)
    {
        return $query->whereLike('name',$value);
    }

    public function searchCorrespondingBusinessAttr($query,$value,$data)
    {
        return $query->whereLike('corresponding_business',$value);
    }
}